From bbe53855419737915cfbd90bf91d785f7f1f48a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Fri, 28 Apr 2017 11:26:25 +0200 Subject: [PATCH] frame: Properly initialize clip GtkCssGadget initializes the content clip to {0, 0, 0, 0}, so we can't just union the child clip with it. --- gtk/gtkframe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c index fc4381c9f0..05b603d5d1 100644 --- a/gtk/gtkframe.c +++ b/gtk/gtkframe.c @@ -688,7 +688,7 @@ static void gtk_frame_size_allocate (GtkWidget *widget, GtkAllocation *allocation) { - GtkAllocation clip = *allocation; + GtkAllocation clip; gtk_widget_set_allocation (widget, allocation); @@ -721,6 +721,8 @@ gtk_frame_allocate (GtkCssGadget *gadget, gtk_frame_compute_child_allocation (frame, &new_allocation); priv->child_allocation = new_allocation; + *out_clip = *allocation; + if (priv->label_widget && gtk_widget_get_visible (priv->label_widget)) { -- 2.30.2